//
//  Topic.swift
//  ReadHub
//
//  Created by 龙轶群 on 2017/5/11.
//  Copyright © 2017年 longyiqun. All rights reserved.
//

import Foundation

// Topic类
class Topic {

    // 私有成员
    private var _id: String? = ""
    private var _title: String? = ""
    private var _summary: String? = ""
    private var _newsArray: Array<NewsArrayUnit>? = []
    private var _relatedTopicArray: Array<NewsArrayUnit>? = []
    private var _order: Int? = 0
    private var _publishDate: String? = ""
    private var _createdAt: String? = ""
    private var _updatedAt: String? = ""
    
    //Get&Set方法
    var id: String? {
        get{
            return _id
        }
        set{
            _id = newValue
        }
    }
    
    var title: String? {
        get{
            return _title
        }
        set{
            _title = newValue
        }
    }
    
    var summary: String? {
        get{
            return _summary
        }
        set{
            _summary = newValue
        }
    }
    
    var newsArray: Array<NewsArrayUnit>? {
        get{
            return _newsArray
        }
        set{
           _newsArray = newValue
        }
    }
    
    var relatedTopicArray: Array<NewsArrayUnit>? {
        get{
            return _relatedTopicArray
        }
        set{
            _relatedTopicArray = newValue
        }
    }
    
    var order: Int? {
        get{
            return _order
        }
        set{
            _order = newValue
        }
    }
    
    var publishDate: String? {
        get{
            return _publishDate
        }
        set{
            _publishDate = newValue
        }
    }
    
    var createdAt: String? {
        get{
            return _createdAt
        }
        set{
           _createdAt = newValue
        }
    }
    
    var updatedAt: String? {
        get{
            return _updatedAt
        }
        set{
            _updatedAt = newValue
        }
    }
    
    
}
